/**
 * StarHighlight.java
 *
 * Roslan's Remake of MOO in 3D using Ardor3D
 * (C) 2011 Roslan Amir. All rights reserved.
 */

package com.roslan.games.moo3d.spatial;

import com.ardor3d.math.Vector3;
import com.ardor3d.renderer.state.MaterialState;
import com.ardor3d.scenegraph.Node;
import com.ardor3d.scenegraph.shape.Sphere;
import com.ardor3d.scenegraph.shape.Sphere.TextureMode;
import com.ardor3d.scenegraph.shape.Torus;
import com.roslan.games.moo3d.GameData;
import com.roslan.games.moo3d.utils.HexGridUtils;

/**
 * This class represents the node for highlighting the selected star or colony.
 * 
 * @author Roslan Amir
 * @version 1.0 - Feb 24, 2011
 */
public class StarHighlight extends Node {

	/**
	 * Default no-arg constructor.
	 * 
	 */
	public StarHighlight() {
		super("StarHighlightNode");

		final Torus torus = new Torus("StarHighlightTorus", 32, 32, 0.04, HexGridUtils.HEXGRID_R);
		this.attachChild(torus);

		final Sphere ball = new Sphere("StarHighlightBall", new Vector3(HexGridUtils.HEXGRID_R, 0, 0), 32, 32, 0.1, TextureMode.Linear);
		this.attachChild(ball);

		final MaterialState renderState = new MaterialState();
		renderState.setAmbient(GameData.COLOR_MOO2_ORANGE);
		this.setRenderState(renderState);
	}

}
